﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
   public class CustomerMapping
    {
       public static Customer ConvertToEntity(ViewModelCustomer model)
       {
           Customer entiry = new Customer();
           entiry.Address = model.Address;
           entiry.Email = model.Email;
           entiry.Id = model.Id;
           entiry.Name = model.Name;
           entiry.Password = model.Password;
           entiry.Phone = model.Phone;
           entiry.UserName = model.UserName;
           return entiry;
       }
    }
}
